/*
 * @Description: 
 * @Date: 2024-06-06 16:35:20
 * @LastEditTime: 2024-08-27 16:59:29
 */
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'


export const rules = reactive({
  businessId: [required],
  status: [required]  
})

// CrudSchema https://doc.iocoder.cn/vue3/crud-schema/
const crudSchemas = reactive<CrudSchema[]>([
  {
    label: '通知内容',
    field: 'conent',
    isSearch: true,
    
  },
  {
    label: '业务类型',
    field: 'businessType',
    isSearch: true,
    dictType: DICT_TYPE.DAI_BAN,
    form: {
      component: 'SelectV2'
    },
    search:{
      component:"Select",
      formItemProps:{
        style:{
          width:'300px'
        }
      }
    }
  },
 
  {
    label: '状态',
    field: 'status',
    isSearch: true,
    dictType: DICT_TYPE.DAI_STATUS,
    form: {
      component: 'Radio'
    },
    search:{
      component:"Select",
      formItemProps:{
        style:{
          width:'300px'
        }
      }
    }
  },
  
  {
    label: '操作',
    field: 'action',
    isForm: false
  }
])
export const { allSchemas } = useCrudSchemas(crudSchemas)
